import { PureComponent } from 'react'
import { Input, Select, Button } from 'antd'
import SingleTable from 'components/table/index'
import styles from './onHoldList.less'
const { Option } = Select
export default class OnHoldList extends PureComponent {
    render(){
        const dataList = []
        const columns = [
        {
            key: 'gmtCreate',
            title: '转运单号',
            dataIndex: 'gmtCreate',
            align: 'center',
        },
        {
            key: 'operationTypeName',
            title: '子运单编号',
            dataIndex: 'operationTypeName',
            align: 'center',
        },
        {
            key: 'creatorName',
            title: '子单类型',
            dataIndex: 'creatorName',
            align: 'center',
        },
        {
            key: '1',
            title: '运单状态',
            dataIndex: 'gmtCreate',
            align: 'center',
        },
        {
            key: '2',
            title: '锁定者',
            dataIndex: 'operationTypeName',
            align: 'center',
        },
        {
            key: '3',
            title: '锁定备注',
            dataIndex: 'creatorName',
            align: 'center',
        },
        {
            key: '4',
            title: '锁定时间',
            dataIndex: 'creatorName',
            align: 'center',
        },
        {
            key: '5',
            title: '解锁者',
            dataIndex: 'creatorName',
            align: 'center',
        },
        {
            key: '6',
            title: '解锁备注',
            dataIndex: 'creatorName',
            align: 'center',
        },
        {
            key: '7',
            title: '解锁时间',
            dataIndex: 'creatorName',
            align: 'center',
        },
        ]
        return(
            <div className={styles.onHoldList}>
                <div className={styles.onHoldListBox}>
                    <h2>ONHOLD 列表</h2>
                </div>
                <div className={styles.onHoldListSearch}>
                    <div className={styles.onHoldListSin}>
                        <span className={styles.onHoldListSpan}>IAE转运单号：</span>
                        <Input className={styles.onHoldListInput}/>
                    </div>
                    <div className={styles.onHoldListSin} style={{margin: '0 28px'}}>
                        <span className={styles.onHoldListSpan}>子运单编号：</span>
                        <Input className={styles.onHoldListInput}/>
                    </div>
                    <div className={styles.onHoldListSin}>
                        <span className={styles.onHoldListSpan}>运单状态：</span>
                        <Select className={styles.onHoldListInput}>
                            <Option value="value">Lucy</Option>
                        </Select>
                    </div>
                </div>
                <Button type="primary" icon="search" style={{margin: '0 0 24px 24px'}}>查询</Button>
                <div className={styles.onHoldListTable}>
                    <SingleTable
                        data={{ list: dataList }}
                        columns={columns}
                    />
                </div>
            </div>
        )
    }
}